package com.bee.portal.service.sm.impl;

import java.io.Serializable;
import java.util.Collection;
import java.util.List;
import java.util.Map;

import com.bee.base.entity.Page;
import com.bee.portal.dao.sm.AccountDao;
import com.bee.portal.domain.sm.Account;
import com.bee.portal.service.sm.AccountService;

public class AccountServiceImpl implements AccountService {

	private AccountDao accountDao;

	public void setAccountDao(AccountDao accountDao) {
		this.accountDao = accountDao;
	}

	@Override
	public Serializable save(Account entity) {
		return accountDao.save(entity);
	}

	@Override
	public void saveAll(Collection<Account> entities) {
		accountDao.saveAll(entities);
	}

	@Override
	public Account get(Long sid) {
		return accountDao.get(sid);
	}

	@Override
	public List<Account> find(String queryString, Object... values) {
		return accountDao.find(queryString, values);
	}

	@Override
	public List<Account> find(Account entity) {
		return accountDao.find(entity);
	}

	@Override
	public List<Account> find(Map<String, String> params) {
		return accountDao.find(params);
	}

	@Override
	public List<Account> findAll() {
		return accountDao.findAll();
	}

	@Override
	public void update(Account entity) {
		accountDao.update(entity);
	}

	@Override
	public void updateAll(Collection<Account> entities) {
		accountDao.updateAll(entities);
	}

	@Override
	public void delete(Account entity) {
		accountDao.delete(entity);
	}

	@Override
	public void delete(Long sid) {
		accountDao.delete(sid);
	}

	@Override
	public void deleteAll(Collection<Account> entities) {
		accountDao.deleteAll(entities);
	}

	@Override
	public Page page(String queryString, int pageNo, int pageSize) {
		return accountDao.page(queryString, pageNo, pageSize);
	}

	@Override
	public Page page(Map<String, String> params, int pageNo, int pageSize) {
		return accountDao.page(params, pageNo, pageSize);
	}

}
